
/**
 * a token is a tokenized terminal
 * which the element to build all grammars
 * huizi 2024
 */
function token(terminal, lexeme, line, start, end){
    return Object.freeze({
        terminal: ()=> terminal,
        lexeme: ()=> lexeme,
        line: ()=> line,
        start: ()=> start,
        end: ()=> end
    });
}

export {token};